package net.zisen.cloud.goods.model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.beetl.sql.core.annotatoin.Table;

/**
 * GGoods Dao
 *
 * @author time
 * @date 2019/05/17 16:18
 */
@Table(name = "g_goods")
@Getter
@Setter
@ToString
@EqualsAndHashCode
public class Goods {

    /**
     * 主键id
     */
    private Long id;
    /**
     * ????
     */
    private String name;
    private java.math.BigDecimal price;
    private Integer quality;
    private Integer state;

    public enum State {
        NEW(100), IN_SALE(200), OBTAINED(300);
        private int state;

        State(int state) {
            this.state = state;
        }

        public int value() {
            return state;
        }
    }


}
